<?php
/**
 * Created by PhpStorm.
 * User: Test
 * Date: 2017/5/4
 * Time: 11:14
 */

namespace app\models;
use Yii;
use yii\base\Model;//该基类通常用来表示数据

class EntryForm extends Model
{
    public $name;
    public $email;
    public $sex;


    public function rules()
    {
        return [
            [['name', 'email','sex'], 'required'],
            ['email', 'email'],
        ];
    }
    public function attributeLabels()
    {
        return [
            'verifyCode' => 'Verification Code',
            'name'=>'姓名',
           'email'=>'邮件',
            'sex'=>'性别',


        ];
    }



}
